#ifndef _TIMER_H
#define _TIMER_H

void TIM1_Init(u32 arr);
void TIM2_Init(u32 arr);
void TIM7_Config(u16 arr);

#define AD_TrigerTimer_init(x) TIM1_Init(x)
#define PnumPSTimer_init(x) TIM2_Init(x)

#define AD_SAMPLE_FREQ adc_sample_freq

extern u16 TIM1_IRQcnt;

#endif
